import {developUrl,serverDK} from "@/views/api/api"
import axios from "axios"

export const apiGetSmDictionaryController = (urlParam) => {
    return axios(
        {
            method: "get",
            headers: {
                "Content-Type": "application/json"
            },
            url: developUrl+serverDK+urlParam,
        }
    ).then(
        (res) => res
    ).catch(
        (error) => {
            console.log('出错:'+error)
        }
    );
}

export const apiPostSmDictionaryController = (urlParam,param) => {
    return axios(
        {
            method: "post",
            headers: {
                "Content-Type": "application/json"
            },
            url: developUrl+serverDK+urlParam,
            data: param,
        }
    ).then(
        (res) => res
    ).catch(
        (error) => {
            console.log('出错:'+error)
        }
    );
}